package com.mb.app.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 优惠劵信息（用户已领取）
 * </p>
 *
 * @author liliping
 * @since 2019-05-20
 */
@TableName("tb_coupons")
public class TbCoupons implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 优惠劵编号
	 */
	@TableId(value="coupon_id")
	private Long couponId;

	/**
	 * 优惠劵配置编号
	 */
	@TableField(value="coupon_cfg_id")
	private Long couponCfgId;

	/**
	 * 用户编号
	 */
	@TableField(value="member_id")
	private Long memberId;

	/**
	 * 有效期开始时间
	 */
	@TableField(value="expire_begin_date")
	private Date expireBeginDate;

	/**
	 * 有效期结束时间
	 */
	@TableField(value="expire_end_date")
	private Date expireEndDate;

	/**
	 * 领取时间
	 */
	@TableField(value="receive_time")
	private Date receiveTime;

	/**
	 * 使用时间
	 */
	@TableField(value="use_time")
	private Date useTime;

	/**
	 * 优惠劵状态  0:未使用 1:已使用 2:已过期 3:已作废
	 */
	@TableField(value="coupon_status")
	private Integer couponStatus;

	/**
	 * 使用订单号
	 */
	@TableField(value="use_order_id")
	private String useOrderId;

	/**
	 * 数据状态
		0：删除
		1：正常
	 */
	@TableField(value="data_status")
	private Integer dataStatus;

	/**
	 * 删除时间
	 */
	@TableField(value="del_time")
	private Date delTime;

	/**
	 * 删除人
	 */
	@TableField(value="del_user_id")
	private Long delUserId;

	@TableField(exist = false)
	private String nickName;

	@TableField(exist = false)
	private String couponName;

	@TableField(exist = false)
	private String phone;


	public Long getCouponId() {
		return couponId;
	}

	public void setCouponId(Long couponId) {
		this.couponId = couponId;
	}

	public Long getCouponCfgId() {
		return couponCfgId;
	}

	public void setCouponCfgId(Long couponCfgId) {
		this.couponCfgId = couponCfgId;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Date getExpireBeginDate() {
		return expireBeginDate;
	}

	public void setExpireBeginDate(Date expireBeginDate) {
		this.expireBeginDate = expireBeginDate;
	}

	public Date getExpireEndDate() {
		return expireEndDate;
	}

	public void setExpireEndDate(Date expireEndDate) {
		this.expireEndDate = expireEndDate;
	}

	public Date getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}

	public Date getUseTime() {
		return useTime;
	}

	public void setUseTime(Date useTime) {
		this.useTime = useTime;
	}

	public Integer getCouponStatus() {
		return couponStatus;
	}

	public void setCouponStatus(Integer couponStatus) {
		this.couponStatus = couponStatus;
	}

	public String getUseOrderId() {
		return useOrderId;
	}

	public void setUseOrderId(String useOrderId) {
		this.useOrderId = useOrderId;
	}

	public Integer getDataStatus() {
		return dataStatus;
	}

	public void setDataStatus(Integer dataStatus) {
		this.dataStatus = dataStatus;
	}

	public Date getDelTime() {
		return delTime;
	}

	public void setDelTime(Date delTime) {
		this.delTime = delTime;
	}

	public Long getDelUserId() {
		return delUserId;
	}

	public void setDelUserId(Long delUserId) {
		this.delUserId = delUserId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getCouponName() {
		return couponName;
	}

	public void setCouponName(String couponName) {
		this.couponName = couponName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
}
